<?php
/**
 * 指标BAR控制类
 * @author w.
 *
 */
class IndicatorBarHandle {

	private $bars;
	private $idcMg = null;
	private $collection = null;
	private $dbClient = null;
	
	public function __construct($bars,$indicatorManage,$dbClient,$collection){
		$this->bars = $bars;
		$this->idcMg = $indicatorManage;
		$this->collection = $collection;
		$this->dbClient = $dbClient;
	}
		
	public function run(){
		$this->idcMg->setCollection($this->collection);
		$this->idcMg->setDbClient($this->dbClient);
		$this->bars = $this->idcMg->calc($this->bars);
		
		//var_dump($this->bars[count($this->bars)-1]);
	}

}

?>
